package org.agony2d.gpu.supportClasses.textures {
	import flash.geom.Rectangle;
	import org.agony2d.core.agony_internal;
	
	use namespace agony_internal;
	
public class RegionTexture extends TextureProxy {
	
	public function RegionTexture( fullTexture:FullTexture, region:Rectangle, name:String ) {
		super(name)
		m_rawTexture = fullTexture.m_rawTexture
		m_realityWidth = fullTexture.m_realityWidth
		m_realityHeight = fullTexture.m_realityHeight
		m_x = region.x
		m_y = region.y
		m_fullWidth = region.width
		m_fullHeight = region.height
	}
	
}
}